//package com.yunda.nebula.gateway.controller;
//
//import com.yunda.nebula.core.tool.api.Result;
//import com.yunda.nebula.gateway.beandefine.DynamicRouteService;
//import org.springframework.web.bind.annotation.*;
//
///**
// * \* User: wei.zhang
// * \* Date: 2019/11/12 15:52
// * \* Description:
// * \
// */
//@RestController
//@RequestMapping("/route")
//public class RouteController {
////    @Autowired
//    private DynamicRouteService dynamicRouteService;
//
//    @RequestMapping("/error")
//    public Result error(){
//        Result resultResp = Result.fail(3001,"请求超时!!!");
//        return resultResp;
//    }
//
//    @ResponseBody
//    @RequestMapping("/routes/{id}")
//    public String delete(@PathVariable String id) {
//        try {
//            return this.dynamicRouteService.delete(id);
//        }catch (Exception e){
//            e.printStackTrace();
//        }
//        return "";
//    }
//}
